<%-- 
    Document   : index
    Created on : Oct 24, 2009, 12:10:05 AM
    Author     : Anu
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%
	String serviceName=request.getParameter("servicelist");
	String userID=request.getParameter("userid");
	String apikey=request.getParameter("apikey");
	
	/*request.setAttribute("userid",userID);
	request.setAttribute("apikey",apikey);
	request.setAttribute("servicelist",serviceName);*/
	
	session.setAttribute("service",serviceName);
	session.setAttribute("uid",userID);
	session.setAttribute("apikey",apikey);
	System.out.println(userID);
	System.out.println(apikey);
	if(serviceName.equals("S2"))
			response.sendRedirect("imageRecommender.jsp");
	
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>picSEEK</title>
        <link rel="stylesheet" type="text/css" href="../picClient/styles/style.css" />
    </head>
    <body>
        <div id="templatemo_container">
  <div id="templatemo_header">
      <div id="templatemo_top">
      </div>
  <div id="templatemo_content">
    <div id="templatemo_top">
        <div class="templatemo_center">
        <div id="templatemo_site_title">
        </div>
        <br/>
        <form method="POST" action="Dblogresults.jsp">
            <div class="frmText">
            <table border="0">
                    <tr>
                        <td>Key Word: </td>
                        <td><input type="text" id="keywrd" name="keywrd" value="" size="40" /></td>
                    </tr>
                    <tr>
                        <td>Raw Text: </td>
                        <td>
                        <textarea rows="5" cols="20" id="rawText" name="rawText"></textarea>
                        </td>
                    </tr>          
                    <tr>
                        <td></td>
                        <td><input type="submit" value="Search" align="middle"/></td>
                    </tr>
            </table>
            </div>
            <%
            	//HttpSession session = request.getSession();
   				//String keyword = request.getParameter( "keywrd" );
   				//request.getSession().setAttribute( "keyWord", keyword );
   
   				/*String select = request.getParameter( "" );
  				 session.setAttribute( "keyWord", keyword );*/
			%>
            

        </form>
        </div>
    </div>
    </div>
  </div>
  <div id="templatemo_footer">
    <div class="footer_left"></div>
    <div class="footer_dot"></div>
        <div class="footer_right"></div>
  </div>
</div>
    </body>
</html>
